Apparatus and method for controlling system

ABSTRACT

A system control apparatus includes a proportional-integral-derivative (PID) controller configured to control a behavior of a system and having a gain, and a gain determiner configured to apply, to a set adaptive load model, a variable associated with an error that varies based on a load change of the system and adaptively vary the gain using the adaptive load model to which the variable associated with the error is applied.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims the priority benefit of Korean Patent Application No. 10-2019-0065242 filed on Jun. 3, 2019, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference for all purposes.

BACKGROUND 1. Field

One or more example embodiments relate to an apparatus and method for controlling a system.

2. Description of Related Art

A proportional-integral-derivative (PID) controller configured to determine a behavior of a system has a proportional gain, an integral gain, and a derivative gain. These proportional, integral, and derivative gains are coupled to one another. Thus, determining a gain of a PID controller may be an issue of great concern to achieve a desired behavior of a system. There have been various methods performed to systematically discover a gain of a PID controller, and these may be generally based on a trial and error by a user. For example, Korean Patent Registration No. 10-0507835 discloses a method of selecting an optimal gain of a PID controller.

SUMMARY

According to an example embodiment, there is provided a system control apparatus. The system control apparatus includes a proportional-integral-derivative (PID) controller configured to control a behavior of a system and having a gain, and a gain determiner configured to apply, to a set adaptive load model, a variable associated with an error that varies based on a load change of the system, and adaptively vary the gain using the adaptive load model to which the variable associated with the error is applied.

The gain determiner may determine the gain using a time change rate of the adaptive load model.

When the determined gain is out of a set range, the gain determiner may determine the gain to be a first user set constant.

An output of the adaptive load model may be nonlinear with respect to the variable associated with the error.

The gain determiner may apply the variable associated with the error to a set stability model, and ensure stability of the system using the stability model to which the variable associated with the error is applied.

The gain determiner may apply a second user set constant to the stability model and ensure stability of the system.

The second user set constant may be selected such that a magnitude of the time change rate of the adaptive load model to which the variable associated with the error is applied is relatively greater than a magnitude of an output of the stability model to which the second user set constant is applied.

The variable associated with the error may be defined based on a position error of the system and a corresponding time change rate.

The gain determiner may initialize the gain to be a set value at a point in time at which a load of the system changes.

The system control apparatus may further include a sensor configured to sense a point in time at which a load of the system changes.

According to another example embodiment, there is provided a system control method. The system control method includes applying, to a set adaptive load model, a variable associated with an error that varies based on a load change of a system, adaptively varying a gain of a PID controller using the adaptive load model to which the variable associated with the error is applied, and determining a behavior of the system based on the gain of the PID controller.

Additional aspects of example embodiments will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

These and/or other aspects, features, and advantages of the present disclosure will become apparent and more readily appreciated from the following description of example embodiments, taken in conjunction with the accompanying drawings of which:

FIG. 1 is a diagram illustrating an apparatus for controlling a system according to an example embodiment;

FIG. 2 is a graph illustrating an output of an adaptive gain based on a lapse of time that is measured using an apparatus and method for controlling a system according to an example embodiment; and

FIG. 3 is a graph illustrating a variable associated with an error based on a lapse of time that is measured using an apparatus and method for controlling a system according to an example embodiment.

DETAILED DESCRIPTION

The following detailed description is provided to assist the reader in gaining a comprehensive understanding of the methods, apparatuses, and/or systems described herein. However, various changes, modifications, and equivalents of the methods, apparatuses, and/or systems described herein will be apparent after an understanding of the disclosure of this application. For example, the sequences of operations described herein are merely examples, and are not limited to those set forth herein, but may be changed as will be apparent after an understanding of the disclosure of this application, with the exception of operations necessarily occurring in a certain order. Also, descriptions of features that are known in the art may be omitted for increased clarity and conciseness.

The features described herein may be embodied in different forms, and are not to be construed as being limited to the examples described herein. Rather, the examples described herein have been provided merely to illustrate some of the many possible ways of implementing the methods, apparatuses, and/or systems described herein that will be apparent after an understanding of the disclosure of this application.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms “a,” “an,” and “the,” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises,” “comprising,” “includes,” and/or “including,” when used herein, specify the presence of stated features, integers, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, operations, elements, components, and/or groups thereof.

Terms such as first, second, A, B, (a), (b), and the like may be used herein to describe components. Each of these terminologies is not used to define an essence, order, or sequence of a corresponding component but used merely to distinguish the corresponding component from other component(s). For example, a first component may be referred to as a second component, and similarly the second component may also be referred to as the first component.

It should be noted that if it is described in the specification that one component is “connected,” “coupled,” or “joined” to another component, a third component may be “connected,” “coupled,” and “joined” between the first and second components, although the first component may be directly connected, coupled or joined to the second component. In addition, it should be noted that if it is described in the specification that one component is “directly connected” or “directly joined” to another component, a third component may not be present therebetween. Likewise, expressions, for example, “between” and “immediately between” and “adjacent to” and “immediately adjacent to” may also be construed as described in the foregoing.

Unless otherwise defined, all terms, including technical and scientific terms, used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains based on an understanding of the present disclosure. Terms, such as those defined in commonly used dictionaries, are to be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and are not to be interpreted in an idealized or overly formal sense unless expressly so defined herein.

Hereinafter, some example embodiments will be described in detail with reference to the accompanying drawings. Regarding the reference numerals assigned to the elements in the drawings, it should be noted that the same elements will be designated by the same reference numerals, wherever possible, even though they are shown in different drawings.

FIG. 1 is a diagram illustrating an apparatus for controlling a system according to an example embodiment. An apparatus for controlling a system will be hereinafter simply referred to as a system control apparatus, and a method of controlling a system will be hereinafter simply referred to as a system control method.

Referring to FIG. 1, a system control apparatus 10 includes a proportional-integral-derivative (PID) controller 110 configured to control a behavior of a system, and a gain determiner 120 configured to determine a gain of the PID controller 110. The system control apparatus 10 is configured to control a robot having N degrees of freedom (DOF), for example.

The system control apparatus 10 is configured to obtain an adaptive gain that maintains a sufficiently high level of robustness against a load change of the system. A standard form of the PID controller 110 configured to determine a behavior of the system is as follows.

τ=K(e+T _(D) ė+T _(I) ⁻¹∫₀ ^(t) edu)+τ_(DC)  [Equation 11]

In Equation 1, τ denotes an output of the PID controller 110 configured to determine a behavior of the system. K denotes a gain, or a proportional gain, of the PID controller 110. T_(D) and T_(I) denote a derivative gain and an integral gain, respectively. In addition, e denotes a position error which is represented by Equation 2 below.

e=x _(d)−x  [Equation 2]

In Equation 2, x denotes an input of the system control apparatus 10, and represents an actual path of a joint included in the system. x_(d) represents a desired path of the joint that is desired by a user. x and x_(d) are presented by the following equations, for example.

$\begin{matrix} {x_{d} = \begin{matrix} \begin{matrix} q_{d} \\ {\overset{.}{q}}_{d} \end{matrix} \\ {\overset{¨}{q}}_{d} \end{matrix}} & \left\lbrack {{Equation}\mspace{14mu} 3} \right\rbrack \\ {x = \begin{matrix} \begin{matrix} q \\ \overset{.}{q} \end{matrix} \\ \overset{¨}{q} \end{matrix}} & \left\lbrack {{Equation}\mspace{14mu} 4} \right\rbrack \end{matrix}$

In Equations 3 and 4, q denotes a displacement vector of the joint included in the system. Thus, x and x_(d) may be represented by the displacement vector, a velocity vector, and an acceleration vector of the joint included in the system.

For example, in the standard form of the PID controller 110, τ_(DC) is a direct current (DC) bias or a null value to maintain the system being in a normal state. This may be set based on an environment of the system.

The standard form of the PID controller 110 may be represented in a discrete time domain. That is, in a digital execution environment, the proportional gain, the derivative gain, and the integral gain may be determined as represented by the following equations, respectively.

$\begin{matrix} {K = \frac{{\overset{\_}{M}(s)} \times K_{D}}{L}} & \left\lbrack {{Equation}\mspace{14mu} 5} \right\rbrack \\ {T_{D} = K_{D}^{- 1}} & \left\lbrack {{Equation}\mspace{14mu} 6} \right\rbrack \\ {T_{I} = {K_{P}^{- 1} \times K_{D}}} & \left\lbrack {{Equation}\mspace{14mu} 7} \right\rbrack \end{matrix}$

In the foregoing equations, s denotes a variable associated with an error that varies based on a load change of the system, which may be represented by Equation 8.

s=ė+λe  [Equation 8]

In Equation 8, e denotes the position error, and λ denotes a slope gain. That is, the variable associated with the error may be represented by the position error and a corresponding time change rate, and the slope gain.

Referring to Equations 5 through 8 above, M(s) denotes an adaptive gain of which an output varies in response to an input of the variable associated with the error. K_(D) and K_(L) denote a first parameter and a second parameter, respectively, to determine a gain, and L denotes a control period. The first parameter and the second parameter, and the control period may be set by the user.

Based on the foregoing equations, the adaptive gain of which the output varies based on the variable associated with the error which varies based on a load change of the system is included in the standard form of the PID controller 110, and thus a gain of the PID controller 110 may be adaptively regulated based on a change in a load of the system.

The adaptive gain M(s) included in the standard form of the PID controller 110 may be defined by the following equation, and the gain determiner 120 may determine a gain of the PID controller 110 using the following equation.

$\begin{matrix} \left\{ \begin{matrix} {{\overset{.}{\overset{\_}{M}}}_{ii} = {- {\alpha_{ii}\left( {{\frac{d}{dt}{J_{i}\left( s_{i} \right)}} + {\delta \; s_{i}^{2}}} \right)}}} & {{{if}\mspace{14mu} {\overset{\_}{M}}_{ii}} \geq {\overset{\_}{M}}_{\overset{\_}{ii}}} \\ {{\overset{\_}{M}}_{ii} = {\overset{\_}{M}}_{\overset{\_}{ii}}} & {otherwise} \end{matrix} \right. & \left\lbrack {{Equation}\mspace{14mu} 9} \right\rbrack \end{matrix}$

In Equation 9, i and ii denote an i-th element of a vector and an ii-th diagonal element of a diagonal matrix, respectively. In addition, α_(ii) denotes a positive adaptive gain that determines a regulating rate of an adaptive gain M _(ii).

In detail, in Equation 9, M _(ii) functions as an initial value of M _(ii) and a lower bound thereof. Thus, when M _(ii) obtained based on Equation 9 is greater than or equal to M _(ii) , M _(ii) determined by an equation indicated in a first line of Equation 9 may be used. When M _(ii) is less than M _(ii) , M _(ii) may be set to be M _(ii) . This is for a gain of the PID controller 110 not to be out of a set range.

A time change rate of M _(ii) indicated in the first line of Equation 9 may be classified broadly into two terms.

First, J_(i)(s_(i)) denotes a square function using, as an input, a variable s_(i) associated with an error that varies based on a load change of the system, which is also referred to herein as an adaptive load model. The adaptive load model corresponds to a main parameter that enables a value of M _(ii) to be adaptively regulated based on a load change of the system. A gain of the PID controller 110 may be determined using a time change rate of such adaptive load model.

In addition, a function multiplied by δ and a square of s_(i) is referred to as a stability ensuring model to ensure stability of the system. In general, a magnitude of an output of the adaptive load model is significantly greater than a magnitude of an output of the stability ensuring model, and the adaptive load model may thus be construed as dominantly determining a gain of the PID controller 110.

The adaptive load model J₁(s_(i)) may be defined by the following equation. That is, an output of the adaptive load model may be nonlinear with respect to the variable associated with the error.

J ₁(s _(i))=½s _(i) ²  [Equation 10]

In addition, α_(ii), δ and M _(ii) are all user set constants that are set by the user, and not determined through a trial and error.

Hereinafter, how the system control apparatus 10 operates will be described in detail.

When a load is applied to the system, an inertia of the system increases and a position error of a joint included in the system also increases. This results in an increase in a variable associated with an error, which results in an increase in an output of the adaptive load model and in a positive value of a time change rate of the adaptive load model. Since δ which is a user set constant of the stability ensuring model is sufficiently small, a term of the time change rate of the adaptive load model may dominantly determine a time change rate of M _(ii). Thus, M _(ii) decreases until M _(ii) reaches its lower bound M _(ii) . While M _(ii) is being maintained as M _(ii) , the variable associated with the error may exponentially decrease by Equation 8 above, which greatly reduces an output of the adaptive load model and greatly increases M _(ii). What is described in the foregoing is also applied when the load is removed from the system.

FIG. 2 is a graph illustrating an output of an adaptive gain based on a lapse of time that is measured using a system control apparatus and method according to an example embodiment. FIG. 3 is a graph illustrating a variable associated with an error based on a lapse of time that is measured using a system control apparatus and method according to an example embodiment.

Referring to FIGS. 2 and 3, illustrated are a change in an adaptive gain M _(ii) and a change in a variable s associated with an error, in a time interval between 0 second (sec) and 10 sec to which 0 kilogram (kg) of load is applied to a system, in a time interval between 10 sec and 20 sec to which 10 kg of load is applied to the system, and in a time interval between 20 sec and 30 sec to which 5 kg of load is applied to the system. A broken line indicates a result obtained using an existing system control apparatus and method, and a solid line indicates a result obtained using a system control apparatus and method according to an example embodiment.

It is verified based on the graphs that, when there is a change in load of the system over time, the existing system control apparatus and method may use a fixed constant gain for a PID controller, and thus a gain may not be regulated adaptively in response to such a load change of the system. However, it is verified based on the graphs that, using the system control apparatus and method according to an example embodiment, a gain of a PID controller may change adaptively to each load.

In addition, the system control apparatus and method according to an example embodiment may initialize a gain of the PID controller at a point in time at which a load of the system changes, for example, in the time interval between 10 sec and 20 sec as illustrated in FIGS. 2 and 3. To initialize the gain of the PID controller, the system control apparatus may include a sensor to sense such point in time at which a load of the system changes. When the point at which a load of the system changes is sensed through the sensor, the gain of the PID controller may be initialized to be a set value, and regulated adaptively to the changed load of the system and then determined to be a gain of the PID controller.

The system control apparatus and method described herein according to an example embodiment may have a desirable level of robustness even against a relatively great load applied to a system.

The methods according to the above-described example embodiments may be recorded in non-transitory computer-readable media including program instructions to implement various operations of the above-described example embodiments. The media may also include, alone or in combination with the program instructions, data files, data structures, and the like. The program instructions recorded on the media may be those specially designed and constructed for the purposes of example embodiments, or they may be of the kind well-known and available to those having skill in the computer software arts. Examples of non-transitory computer-readable media include magnetic media such as hard disks, floppy disks, and magnetic tape; optical media such as CD-ROM discs, DVDs, and/or Blue-ray discs; magneto-optical media such as optical discs; and hardware devices that are specially configured to store and perform program instructions, such as read-only memory (ROM), random access memory (RAM), flash memory (e.g., USB flash drives, memory cards, memory sticks, etc.), and the like. Examples of program instructions include both machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter. The above-described devices may be configured to act as one or more software modules in order to perform the operations of the above-described example embodiments, or vice versa.

While this disclosure includes specific examples, it will be apparent to one of ordinary skill in the art that various changes in form and details may be made in these examples without departing from the spirit and scope of the claims and their equivalents. The examples described herein are to be considered in a descriptive sense only, and not for purposes of limitation. Descriptions of features or aspects in each example are to be considered as being applicable to similar features or aspects in other examples. Suitable results may be achieved if the described techniques are performed in a different order, and/or if components in a described system, architecture, device, or circuit are combined in a different manner and/or replaced or supplemented by other components or their equivalents. 

What is claimed is:
 1. A system control apparatus comprising: a proportional-integral-derivative (PID) controller configured to control a behavior of a system and having a gain; and a gain determiner configured to apply, to a set adaptive load model, a variable associated with an error that varies based on a load change of the system, and adaptively vary the gain using the adaptive load model to which the variable associated with the error is applied.
 2. The system control apparatus of claim 1, wherein the gain determiner is configured to determine the gain using a time change rate of the adaptive load model.
 3. The system control apparatus of claim 2, wherein, when the determined gain is out of a set range, the gain determiner is configured to determine the gain to be a first user set constant.
 4. The system control apparatus of claim 1, wherein an output of the adaptive load model is nonlinear with respect to the variable associated with the error.
 5. The system control apparatus of claim 1, wherein the gain determiner is configured to apply the variable associated with the error to a set stability model, and ensure stability of the system using the stability model to which the variable associated with the error is applied.
 6. The system control apparatus of claim 5, wherein the gain determiner is configured to apply a second user set constant to the stability model and ensure stability of the system.
 7. The system control apparatus of claim 6, wherein the second user set constant is selected such that a magnitude of a time change rate of the adaptive load model to which the variable associated with the error is applied is relatively greater than a magnitude of an output of the stability model to which the second user set constant is applied.
 8. The system control apparatus of claim 1, wherein the variable associated with the error is defined based on a position error of the system and a corresponding time change rate.
 9. The system control apparatus of claim 1, wherein the gain determiner is configured to initialize the gain to be a set value at a point in time at which a load of the system changes.
 10. The system control apparatus of claim 1, further comprising: a sensor configured to sense a point in time at which a load of the system changes.
 11. A system control method comprising: applying, to a set adaptive load model, a variable associated with an error that varies based on a load change of a system; adaptively varying a gain of a proportional-integral-derivative (PID) controller using the adaptive load model to which the variable associated with the error is applied; and determining a behavior of the system based on the gain of the PID controller. 